#!/bin/bash - 
#===============================================================================
#
#          FILE:  ex11-24.sh
# 
#         USAGE:  ./ex11-24.sh 
# 
#   DESCRIPTION:  Testing ranges of characters.
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: bucunzai (), freecityer@gmail.com
#       COMPANY: FreeCity
#       CREATED: 2011年02月09日 16时25分42秒 CST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

echo; echo "Press a key, then hit return."
read Keypress

case $Keypress in
    [[:lower:]] )
        echo "Lowercase letter."
        ;;
    [[:upper:]] )
        echo "Uppercase letter."
        ;;
    [0-9])
        echo "Digit."
        ;;
    *)
        echo "Others."
        ;;
esac
exit 0
